package com.wb.shuzu;

import java.util.Arrays;

/**
 * @author 黄衡熙
 * @version 1.0
 * @date 2025年07月20日13:00
 */
public class Test12 {
    public static void main(String[] args) {
        test01(1, 1, 3, 5);
        int[] nums = {1, 3, 5};
        System.out.println(Arrays.toString(nums));

        test02("吃饭", "睡觉", "打豆豆");
    }


    public static void test01(int i, int... nums) {
        System.out.println("不定长参数的长度:" + nums.length);
        System.out.println(Arrays.toString(nums));
    }

    public static void test02(String... hobbies) {
        System.out.println(Arrays.toString(hobbies));
    }
}
